
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 平台分类信息表
    /// </summary>
    public partial class CategoryInfo:BaseModel
    {       
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 分类图标
        /// </summary>
        public string Icon { get; set; }
        public long DisplaySequence { get; set; }
        public long ParentCategoryId { get; set; }
        /// <summary>
        /// 分类的深度
        /// </summary>
        public int Depth { get; set; }
        /// <summary>
        /// 分类的路径（以|分离）
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string RewriteName { get; set; }
        /// <summary>
        /// 是否有子分类
        /// </summary>
        public bool HasChildren { get; set; }
        public long TypeId { get; set; }
        /// <summary>
        /// 分享分佣比例
        /// </summary>
        public decimal CommisRate { get; set; } = 0.00M;
        /// <summary>
        /// 一级分佣比例
        /// </summary>
        public decimal CommisRateOne { get; set; } = 0.00M;
        /// <summary>
        /// 二级分佣比例
        /// </summary>
        public decimal CommisRateTwo { get; set; } = 0.00M;
        /// <summary>
        /// 三级分佣比例
        /// </summary>
        public decimal CommisRateThree { get; set; } = 0.00M;
        public string Meta_Title { get; set; }
        public string Meta_Description { get; set; }
        public string Meta_Keywords { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsDeleted { get; set; }
    
        public virtual ProductTypeInfo ProductTypeInfo { get; set; } 
        public virtual ICollection<FloorCategoryInfo> FloorCategoryInfo { get; set; } = new HashSet<FloorCategoryInfo>();
        public virtual ICollection<HomeCategoryInfo> HomeCategoryInfo { get; set; } = new HashSet<HomeCategoryInfo>();
        public virtual ICollection<BusinessCategoryInfo> BusinessCategoryInfo { get; set; } = new HashSet<BusinessCategoryInfo>();
        public virtual ICollection<ProductInfo> Himall_Products { get; set; } = new HashSet<ProductInfo>();
        public virtual ICollection<CategoryCashDepositInfo> Himall_CategoryCashDeposit { get; set; } = new HashSet<CategoryCashDepositInfo>();
        public virtual ICollection<BusinessCategoriesApplyDetailInfo> Himall_BusinessCategoriesApplyDetail { get; set; } = new HashSet<BusinessCategoriesApplyDetailInfo>();
    }
}
